package com.sq.bootshiro.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.ibatis.mapping.FetchType;

import java.util.Set;

@Data
public class User {

    @TableId(type = IdType.AUTO)
    private Integer userId;

    private String username;
    private String password;

    @TableField(exist=false)
    private Set<Role> roles;


}
